const state = {
  aiCallCount: parseInt(localStorage.getItem('aiCallCount')) || 0
}

const mutations = {
  INCREMENT_AI_CALL_COUNT: (state) => {
    state.aiCallCount++
    localStorage.setItem('aiCallCount', state.aiCallCount)
  }
}

const actions = {
  incrementAiCallCount({ commit }) {
    commit('INCREMENT_AI_CALL_COUNT')
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
} 